var header_menu_item_actived;
$(function(){
    //header menu
    header_menu_item_actived = $('.actived');

    jQuery('.menu-top .menu li.menu_item').hoverIntent(
        function(){
            //$(this).children('a:first').addClass("actived");
            var sub_menu = $(this).children('ul:first');

            var off_set = $(this).offset();
            sub_menu.css('display', 'block');
            sub_menu.css('opacity', '0');
            sub_menu.css('top', off_set.top + 40 + 'px');
            sub_menu.css('left', off_set.left + -19 + 'px');

            sub_menu.animate({opacity:0.80});
        },
        function(){
            //$(this).children('a:first').removeClass("actived");
            //header_menu_item_actived.addClass("actived");

            $(this).children('ul:first').hide();
        }
    );
});